﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Single.Logger
{
    [SugarTable("sys_request")]
    public class LoggerRequest
    {
        /// <summary>
        /// 默认主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 请求类型
        /// </summary>
        public string Method { get; set; }

        /// <summary>
        /// 请求地址
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 用户IP
        /// </summary>
        public string UserIp { get; set; }

        /// <summary>
        /// 客户端类型
        /// </summary>
        public string BrowserType { get; set; }

        /// <summary>
        /// 正文类型
        /// </summary>
        public string ContentType { get; set; }

        /// <summary>
        /// 请求参数
        /// </summary>
        public string RequestParameter { get; set; }

        /// <summary>
        /// 用户编号
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 用户账号
        /// </summary>
        public string Username { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        public string Name { get; set; }
    }
}
